<div id="header">
	<div id="top"><div style="width:190px; float:right; margin-left:30px; background:url(images/txtSearch.png) no-repeat"><form action="" name="search" method="post" onSubmit="return SearchGoogle();"><input type="text" name="txtSearch" id="txtSearch" value="Tìm kiếm" onClick="if(value=='Tìm kiếm') value=''" onBlur="if(value=='') value='Tìm kiếm'" /><input type="button" name="btnSearch" id="btnSearch" onClick="SearchGoogle();" /></form></div>
    <?
    $top = $tc->menu(0,1);
	while($row_top = mysql_fetch_array($top)){
		echo '<a href="'.$row_top['url'].'">'.$row_top['name'].'</a>';
	}
	?></div>
    <div id="menu_logo">
    	<div id="logo"><a href="/"><img src="images/logo.jpg" alt="logo tài năng việt" /></a></div>
        <div id="menu"><img src="images/menu_frist.png" alt="menu" style="float:left" /><?php include_once('blocks/menu.php');?></div>
    </div>
    <div style="width:100%; height:320px; clear:both; background-color:#FFF">
        <div id="news">
        	<div id="item1"><?php echo $slogan ?></div>
        	<div id="item2">
			<script type="text/javascript" src="library/image_ac/common.js"></script><script type="text/javascript" src="library/image_ac/jquery.simplyscroll.min.js"></script>
            <script type="text/javascript">(function($){$(function() {$("#scroller").simplyScroll();});})(jQuery);</script>
            <ul id="scroller">
            	<?php
                $mc_tb = $tc->slider_baner(2);
				while($row_mc = mysql_fetch_array($mc_tb)){
					$view_mc .= '<li style="list-style:none"><a href="'.$row_mc['link'].'" title="'.$row_mc['name'].'"><img src="public/images/slider/'.$row_mc['url_hinh'].'" width="490px" height="215px" alt="'.$row_mc['name'].'"></a></li>';
				}
				echo $view_mc;
				mysql_free_result($mc_tb);
				?>
            </ul></div>
            <?php
            /*$thonbao = $tc->slider_baner(5);
			$row_tb = mysql_fetch_array($thonbao);
			echo '<div id="item3"><img src="images/phim.png" alt="thông báo khai giảng" /><a href="'.$row_tb['link'].'" title="'.$row_tb['name'].'"><img src="public/images/slider/'.$row_tb['url_hinh'].'" alt="'.$row_tb['name'].'" /></a></div>';*/
			?>
        </div>
        <div id="slider"><?php $slider = $tc->slider($row_menu_one['id']); $row_slider = mysql_fetch_array($slider); echo '<a href="'.$row_slider['link'].'"><img src="public/images/slider/'.$row_slider['url_hinh'].'" alt="'.$row_slider['name'].'" /></a>';?></div>
        <script type="text/javascript">
		$(document).ready(function(e){
			if(navigator.appName!="Microsoft Internet Explorer") $('#slider').corner("round bl 100px"); $('#slider img').corner("round bl 97px");
		});
		</script>
        <div style="clear:both; height:45px; line-height:45px; background-color:#000; font-weight:bold; font-size:14px; color:#FFF">
            <div style="width:205px; height:45px; float:right; padding-left:40px; background:url(images/xem_chi_tiet.jpg) no-repeat left #50b134">Xem thêm chi tiết tại đây</div>
        	<div style="width:auto; float:right; margin-right:30px">Hãy đăng ký tư vấn với chuyên gia của chúng tôi để nhận được <font color="#67c242">ƯU ĐÃI HỌC PHÍ HẤP DẪN</font></div>
        </div>
    </div>
</div>
<script type="text/javascript">
function SearchGoogle(){
	var key = document.getElementById("txtSearch").value;
	var site = document.domain;
	var qs = key + "+site:" + site;
	var url = "http://www.google.com.vn/#sclient=psy-ab&hl=vi&site=&source=hp&q=" + qs + "&pbx=1&oq=" + qs + "&aq=f&aqi=&aql=1&gs_sm=e";
	window.open(url, '_blank');
	return false;
}
</script>